<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/3/14
 * Time: 下午3:43
 */

use Biz\service\trade\Order as sOrder;
use Doraemon\tools\ActionLog;

class DetailAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $orderNo = $this->getRequest()->getQuery('order_no');
        $from = $this->getRequest()->getQuery('from', '');

        $data = sOrder::getDetail($orderNo, $this->uid);
        ActionLog::log($this->uid, ['order_id' => $orderNo, 'from' => $from, 'status' => $data['status']],
            ActionLog::BIZ_ORDER_DETAIL);
        $this->setSuccess($data);

    }
}